apiVersion: kubelatte.io/v1alpha1
kind: Scope
metadata:
  name: kubelatte-validation-rule
  namespace: kubelatte
spec:
  items:
    - apiVersion: v1
      kind: Pod
      name: disallowed-containers
      path: spec.containers[?@.name='notmysidecar'].name
      value: ^$
  type: mutation
